//
//  NSObject+Ext.h
//  Excellence
//
//  Created by 帝云科技 on 2017/7/5.
//  Copyright © 2017年 diyunkeji. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSObject+XHQMethodSwizzling.h"

@interface NSObject (Ext)

+ (BOOL)xhq_notNULL:(id)obj;

@end


#pragma mark - 通知分类类
@interface NSObject (Notification)
/**
 处理通知
 */
- (void)xhq_handleNotification:(NSNotification *)notification;
/**
 添加通知
 */
- (void)xhq_addObserveNotification:(NSNotificationName)notification;
/**
 发送通知
 */
- (void)xhq_postObserveNotification:(NSNotificationName)notification;
/**
 发送参数通知
 */
- (void)xhq_postObserveNotification:(NSNotificationName)notification withObject:(id)object;
/**
 移除通知
 */
- (void)xhq_removeObserveNotification:(NSNotificationName)notification;
/**
 移除全部通知
 */
- (void)xhq_removeAllObserveNotification;

@end
